﻿@{
  
    var curentUser = ZhongheCms.Models.GswTblUser.CurrentUser;
 
}
<!DOCTYPE html>
<html lang="zh-cn">


<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>众和网络内容管理系统</title>
    <meta name="description" content="内容管理系统,常熟众和网络" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/assets/css/font-awesome.min.css" />

    <!-- page specific plugin styles -->



    <!-- ace styles -->
    <link rel="stylesheet" href="/assets/css/ace.min.css" />
    <link rel="stylesheet" href="/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="/assets/css/ace-rtl.min.css" />
    <!--[if lte IE 9]>
			<link rel="stylesheet" href="/assets/css/ace-part2.min.css" />
		<![endif]-->

    <!--[if lte IE 9]>
		  <link rel="stylesheet" href="/assets/css/ace-ie.min.css" />
		<![endif]-->

    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="/assets/js/ace-extra.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

    <!--[if lte IE 8]>
		<script src="/assets/js/html5shiv.js"></script>
		<script src="/assets/js/respond.min.js"></script>
		<![endif]-->
    @RenderSection("css", required: false)
</head>
<body class="no-skin">

    <div id="navbar" class="navbar navbar-default">
        <script type="text/javascript">
            try { ace.settings.check('navbar', 'fixed') } catch (e) { }
        </script>

        <div class="navbar-container" id="navbar-container">
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
                <span class="sr-only">菜单</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <div class="navbar-header pull-left">
                <a href="http://www.zhongheweb.com" target="_blank" class="navbar-brand">
                    <small>
                        <!-- <i class="fa fa-cubes"></i>
                            <img src="/assets/img/gsn.png" />
                            金贝壳软件 -->
                            网站内容管理系统
                    </small>
                </a>
            </div>

            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
               @*     <li class="grey">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-tasks"></i>
                            <span class="badge badge-grey"></span>
                        </a>


                    </li>

                    <li class="purple">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                            <span class="badge badge-important"></span>
                        </a>


                    </li>

                    <li class="green">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
                            <span class="badge badge-success"></span>
                        </a>


                    </li>*@

                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="/assets/avatars/avatar2.png" alt="" />
                            <span>
                                <!-- <small>当前用户</small>class="user-info" -->
                                @curentUser.TrueName
                            </span>

                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                                <a href="/Account/ChangePassword/@curentUser.Id">
                                    <i class="ace-icon fa fa-cog"></i>
                                    密码修改
                                </a>
                            </li>

                            @*<li>
									<a href="profile.html">
										<i class="ace-icon fa fa-user"></i>
										Profile
									</a>
								</li>*@

                            <li class="divider"></li>

                            <li>
                                <a href="/Account/LogOff">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    退出系统 
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
       
    </div>
    <div class="main-container" id="main-container">
        <script type="text/javascript">
            try { ace.settings.check('main-container', 'fixed') } catch (e) { }
        </script>

        @Html.Partial("_Sidebar",curentUser)
       

        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa fa-home home-icon"></i>
                        <a href="Home/Index">首页</a>
                    </li>

                    <li class="active">@curentUser.FuncName
                        @if (!string.IsNullOrEmpty(ViewBag.p))
                        {
                            <span>(@ViewBag.p)</span>
                        }

                    </li>
                </ul>

                <div class="nav-search" id="nav-search">
                </div>
            </div>

            <div class="page-content">

                @RenderBody()

            </div>

        </div>
       @* @Html.Partial("_Footer")*@
        	<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
    </div>






    <!-- basic scripts -->

    <script src="/assets/js/jquery-2.1.1.min.js"></script>
<!--[if IE]>
<script src="/assets/js/jquery-1.11.1.min.js"></script>
<![endif]-->
    <script type="text/javascript">
        window.jQuery || document.write("<script src='/assets/js/jquery-2.1.1.min.js'>" + "<" + "/script>");
    </script>

  

    <!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/assets/js/jquery-1.11.1.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
   
    <script src="/assets/js/bootstrap.min.js"></script>
    <!-- page specific plugin scripts -->
   
    <!--[if lte IE 8]>
		  <script src="/assets/js/excanvas.min.js"></script>
		<![endif]-->
    <script src="/assets/js/jquery-ui.custom.min.js"></script>
    <script src="/assets/js/jquery.ui.touch-punch.min.js"></script>


    <!-- ace scripts -->
    <script src="/assets/js/ace-elements.min.js"></script>
    <script src="/assets/js/ace.min.js"></script>

    <!-- inline scripts related to this page -->
     <script type="text/javascript">
         if ($('.alert').length > 0) {
             window.setTimeout(function () {
                 $('.alert').fadeTo(500, 0).slideUp(500, function () {
                     $(this).remove();
                 });
             }, 3000);
         }
        
         //jQuery(function ($) {

         //    $(".confirm").on(ace.click_event, function (e) {
         //        e.preventDefault();
         //        var link = $(this).attr("href");
         //        bootbox.confirm("确认删除此记录吗?", function (result) {
         //            if (result) {
         //                document.location.href = link;
         //            }
         //        });
         //    });
         //    $('[data-rel=tooltip]').tooltip();
         //});
     </script>
    @RenderSection("js", required: false)
</body>
</html>
